package com.onlinemarket.thrid.domain;

import java.io.Serializable;
import java.util.Date;

import org.springframework.stereotype.Component;

/**
 * 对应sales(销售)表
 * 
 * @author LHC
 *
 */
@Component
public class Sales implements Serializable {
	private static final long serialVersionUID = -5795823895744568527L;
	private int sales_id;
	private double sales_price;
	private int sales_number;
	private Date sales_date;
	private int goods_id;
	private int user_id;

	public Sales() {
	}

	public Sales(double sales_price, int sales_number, Date sales_date, int goods_id, int user_id) {
		this.sales_price = sales_price;
		this.sales_number = sales_number;
		this.sales_date = sales_date;
		this.goods_id = goods_id;
		this.user_id = user_id;
	}

	public int getSales_id() {
		return sales_id;
	}

	public void setSales_id(int sales_id) {
		this.sales_id = sales_id;
	}

	public double getSales_price() {
		return sales_price;
	}

	public void setSales_price(double sales_price) {
		this.sales_price = sales_price;
	}

	public int getSales_number() {
		return sales_number;
	}

	public void setSales_number(int sales_number) {
		this.sales_number = sales_number;
	}

	public Date getSales_date() {
		return sales_date;
	}

	public void setSales_date(Date sales_date) {
		this.sales_date = sales_date;
	}

	public int getGoods_id() {
		return goods_id;
	}

	public void setGoods_id(int goods_id) {
		this.goods_id = goods_id;
	}

	public int getUser_id() {
		return user_id;
	}

	public void setUser_id(int user_id) {
		this.user_id = user_id;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	@Override
	public String toString() {
		return "Sales [sales_id=" + sales_id + ", sales_price=" + sales_price + ", sales_number=" + sales_number
				+ ", sales_date=" + sales_date + ", goods_id=" + goods_id + ", user_id=" + user_id + "]";
	}

}
